<script>
export default {
  name:"Workbench",


}
</script>

<template>
<div>
  <div class="container">
    <input type="search" class="search-box" placeholder="搜索">

    <div class="announcement-card">
      <div class="announcement-title">打造数字化组织 从工作台开始</div>
      <div class="announcement-text">
        <p>公告是什么？</p>
        <p>- 公告是组织文化的传播阵地</p>
        <p>- 放假通知、晋升招聘等各种通知</p>
      </div>
    </div>

    <div class="page-container">
      <div class="page-header">
        <div class="page-title">我的</div>
        <a href="#" class="settings-link">设置</a>
      </div>
      <div class="empty-message">
        暂无最近使用
      </div>
    </div>


    <div class="modules">
      <div class="module-item">
        <div class="module-icon">家</div>
        <div>家校本</div>
      </div>
      <div class="module-item">
        <div class="module-icon">✓</div>
        <div>打卡任务</div>
      </div>
      <div class="module-item">
        <div class="module-icon">安全</div>
        <div>安全校园</div>
      </div>
      <div class="module-item">
        <div class="module-icon">铃铛</div>
        <div>家校通知</div>
      </div>
      <div class="module-item">
        <div class="module-icon">日记</div>
        <div>日志</div>
      </div>
    </div>

    <div class="attendance-card">
      <div class="attendance-stats">
        <div class="attendance-item">
          <div class="attendance-number">0</div>
          <div class="attendance-label">缺卡</div>
        </div>
        <div class="attendance-item">
          <div class="attendance-number">0</div>
          <div class="attendance-label">迟到</div>
        </div>
        <div class="attendance-item">
          <div class="attendance-number">0</div>
          <div class="attendance-label">早退</div>
        </div>
      </div>
      <button class="process-button">处理</button>
    </div>
  </div>


  <div class="containers">
    <div class="headers">
      <button class="header-button active">校园后勤管理</button>
      <button class="header-button">家校沟通</button>
      <button class="header-button">教学工作</button>
      <button class="header-button">教务管理</button>
      <button class="header-button">未分组应用</button>

    </div>


    <div class="apps-grid">
      <div class="app-item">
        <div class="app-icon icon-primary">✓</div>
        <div class="app-name">考勤打卡</div>
      </div>
      <div class="app-item">
        <div class="app-icon icon-primary">⏰</div>
        <div class="app-name">请假</div>
      </div>
      <div class="app-item">
        <div class="app-icon icon-primary">🔧</div>
        <div class="app-name">总务报修</div>
      </div>
      <div class="app-item">
        <div class="app-icon icon-primary">⏰</div>
        <div class="app-name">补卡申请</div>
      </div>
      <div class="app-item">
        <div class="app-icon icon-info">✈️</div>
        <div class="app-name">出差</div>
      </div>
      <div class="app-item">
        <div class="app-icon icon-secondary">📍</div>
        <div class="app-name">签到</div>
      </div>
      <div class="app-item">
        <div class="app-icon icon-danger">🏃</div>
        <div class="app-name">钉钉运动</div>
      </div>
      <div class="app-item">
        <div class="app-icon icon-info">💻</div>
        <div class="app-name">智能会议室</div>
      </div>
      <div class="app-item">
        <div class="app-icon icon-secondary">📁</div>
        <div class="app-name">项目</div>
      </div>
    </div>
  </div>






  <div class="wrapper">
    <div class="container-box">
      <div class="heading-text">
        推荐智能企业
        <a href="#" class="link-reference">推荐</a>
      </div>
    </div>

    <div class="application-list">
      <div class="application-box">
        <div class="application-content">
          <div class="app-logo" style="background-color: var(--color-secondary);">智</div>
          <div class="app-details">
            <div class="app-title">智能绩效</div>
            <div class="app-info">绩效管理应用，人效管理利器</div>
          </div>
        </div>
        <button class="try-button">试用</button>
      </div>

      <div class="application-box">
        <div class="application-content">
          <div class="app-logo" style="background-color: var(--color-info);">简</div>
          <div class="app-details">
            <div class="app-title">简道云</div>
            <div class="app-info">CRM/进销存/人事OA/财务/制造管理/零代码应用搭建平台</div>
          </div>
        </div>
        <button class="try-button">试用</button>
      </div>

      <div class="application-box">
        <div class="application-content">
          <div class="app-logo" style="background-color: var(--color-primary);">公</div>
          <div class="app-details">
            <div class="app-title">公共资产 | 固定资产管理</div>
            <div class="app-info">固定资产管理，设备管理，库存耗材管理，资产盘点，钉钉制造产品</div>
          </div>
        </div>
        <button class="try-button">试用</button>
      </div>

      <div class="application-box">
        <div class="application-content">
          <div class="app-logo" style="background-color: var(--color-secondary);">智</div>
          <div class="app-details">
            <div class="app-title">智能薪酬</div>
            <div class="app-info">同步考勤，打通税务，智能算薪</div>
          </div>
        </div>
        <button class="try-button">试用</button>
      </div>
    </div>

    <button class="exit-action-button">查看更多精彩推荐</button>
  </div>
</div>
</template>



<style>


.page-container {
  padding: 20px;
  background-color: white;
  min-height: 25vh;
  margin-bottom: 30px;

}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.page-title {
  font-size: 16px;
  color: #333;
}

.settings-link {
  color: #999;
  font-size: 14px;
  text-decoration: none;
}

.empty-message {
  padding: 20px;
  color: #999;
  font-size: 14px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.search-box {
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 200px;
  float: right;
}

.announcement-card {
  background: linear-gradient(135deg, #0066ff, #0099ff);
  border-radius: 8px;
  padding: 30px;
  color: white;
  margin-bottom: 20px;
}

.announcement-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
}

.announcement-text {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.5;
}

.modules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.module-item {
  background: white;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.module-icon {
  width: 40px;
  height: 40px;
  background: #f0f0f0;
  border-radius: 8px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.attendance-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.attendance-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.attendance-item {
  text-align: center;
  padding: 10px;
}

.attendance-number {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.attendance-label {
  font-size: 14px;
  color: #666;
}

.process-button {
  width: 100%;
  padding: 12px;
  background: #0066ff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;

}

//尾部
.containers {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.headers {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.header-button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background-color: #f5f5f5;
  color: #333;
}

.header-button.active {
  background-color: #e3f2fd;
  color: #2196f3;
}

.section-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.app-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: white;
  font-size: 20px;
}

.app-name {
  font-size: 12px;
  color: #333;
}

/* 图标颜色 */
.icon-primary {
  background-color: #2196f3;
}

.icon-secondary {
  background-color: #ff9800;
}

.icon-danger {
  background-color: #f44336;
}

.icon-info {
  background-color: #03a9f4;
}

:root {
  --color-primary: #2196f3;
  --color-secondary: #ff9800;
  --color-danger: #f44336;
  --color-info: #03a9f4;
  --background-light: #fafafa;
  --border-color: #e0e0e0;
}


//底部
.wrapper {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--background-light);
}

.header-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-title {
  font-size: 18px;
  color: #333;
}

.view-more-link {
  color: #555;
  font-size: 14px;
  text-decoration: none;
}

.application-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.application-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: #fff;
}

.application-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.app-logo {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}

.app-details {
  flex: 1;
}

.app-title {
  font-size: 14px;
  color: #333;
  margin-bottom: 5px;
}

.app-info {
  font-size: 12px;
  color: #666;
}

.try-button {
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: transparent;
  color: #333;
  cursor: pointer;
  font-size: 12px;
}

.try-button:hover {
  background-color: var(--background-light);
}

.exit-action-button {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 4px;
  background-color: var(--background-light);
  cursor: pointer;
  margin-top: 20px;
}
.container-box {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.heading-text {
  font-size: 16px;
  color: #333;
  margin-bottom: 20px;
  position: relative;
  left: -195px;
  top: 30px;
}

.link-reference {
  color: #999;
  font-size: 14px;
  text-decoration: none;
  margin-left: 10px;
}

</style>


